﻿using System;
using System.Windows.Media;
using OpenLS.Drawing;

namespace OpenLS.Spreadsheet.UI.Internals
{
    class GridCellTextBox: CellTextBox
    {
        public GridCellTextBox()
        {
            
        }
        protected override CellTextSource CreateTextSource(EditedCell newValue, ColorScheme colorScheme, FontFamily fontFamily, double fontSize)
        {
#if DEBUG
            return new FormulaTextSource(newValue, colorScheme);
#endif
            return new InFormulaTextSource(newValue, colorScheme, fontFamily, fontSize);
        }
    }
}